
package com.googlecode.cswish.util;

import com.opensymphony.xwork2.conversion.impl.XWorkConverter;

/**
 * @author Jerry.Feng Date: 2004 16:44:29
 * @version $id: $
 */
public class FrameConstant {
	// the plug-in name
	public static final String NAME = "cswish";
	
	public static final String PACKAGE_PREFIX = "com.";
	public static final String ACTION_PACKAGE_SUFFIX = "Action";
	public static final String SERVICE_PACKAGE_SUFFIX = "Service";
	public static final String MODEL_PACKAGE_SUFFIX = "";
	
    // session, security
    public static final String SESSION_USER_INFO = "fr_session_user_info_";
    
    public static final String SESSION_LAST_VISIT_INFO = "fr_session_last_visit_info";
    
    public static final String REQUEST_LAST_VISIT_INFO = "fr_action_path";
    
    public static final String SESSION_OLD_OBJ = "fr_session_old_obj";
    
    public static final String SESSION_CHECK_OBJ = "fr_session_check_obj";
    
    public static final String SESSION_TX_FILECACHE = "fr_session_tx_filecache";
    
    public static final String SEC_RUNTIME_CHECK = "fr_runtime_check";
    
    public static final String SEC_CHECK_FIELD = "field_name";
    
    /** the ActionResult key stored in ValueStack */
    public static final String ACTION_RESULT = "fr_action_result";
    
    /** prepare to commit a method, such as, prepare to search, prepare to add */
    public static final String ACTION_PREPARE = "_";
    
    ////////////////////////////// parameter //////////////////////////////////
    public static final String METHOD_SLASH = ".";	// the struts default implement is '!'
    
    public static final String PARAM_SKIP_RECORD = "_skipRecord";	// skip record current page request
    
    public static final String PARAM_PROCTED_NAME = "___cswish___";
    
    /** the container that the request comes from */
    public static final String PARAM_CONTAINER = "_container";
    
    /** the result code that page will forward to */
    public static final String PARAM_RESULTCODE = "_resultCode";
    public static final String PARAM_INPUTCODE = "_inputCode";
    public static final String PARAM_INPUT_JSON = "$json";
    public static final String PARAM_RESULT_EMPTY = "$noResult";
    public static final String PARAM_RESULT_ELEMENT = "$element";
    public static final String PARAM_ELEMENT_NAME = "_elementName";
    public static final String PARAM_RESULT_STRING = "$string";
    public static final String PARAM_RESULT_JSON = "$json";
    public static final String PARAM_COMMIT_FILENAME = "_commitFileName";
    
    /** the model type */
    public static final String PARAM_GENERIC_TYPE = "_type";
    
    /** the page template to generate the PageElements object */
    public static final String PARAM_TEMPLATE = "_tpl";
    
    public static final String DEFAULT_PACKAGE = "cswish-default";
    
    ///////////////////////////// ValueStack //////////////////////////////////
    public static final String STACK_LOCATION = "location";
    public static final String STACK_PAGEELEMENTS = "ps";
    public static final String STACK_FUNCTION = "fn";
    public static final String STACK_VALIDATORS = "_validators";
    public static final String STACK_ACTIONNAME = "actionName";
    public static final String STACK_ACTIONPATH = "actionPath";
    public static final String STACK_UPLOADFILES = "_uploadFiles";
    public static final String STACK_TXUPLOADFILES = "_txuploadFiles";
    
    public static final String NAME_PREFIX_STACK = "_namePrefixStack";
    
    public static final String CONVERTER_PROPERTY = XWorkConverter.LAST_BEAN_PROPERTY_ACCESSED;		// see TypeConverter,ReflectionContextState,XWorkConverter
    
    ///////////////////////////////////////////////////////////////////////////
    // TODO: 'security' package is using it
	public static final String FORM_ACTION = "temp";

	public static final String EXP_WEBSEARCH_NETWORK = "WEBSEARCH_NETWORK";

	public static final String SEARCH_SEARCHING = "SEARCHING";
	public static final String USER_SCREEN = "fr_user_screen";

	// store the static page result to request
	public static final String STATIC_NOT_FOUND = "SC_NOT_FOUND";
}